\ProvidesClass{physlecture}[2015/03/18 Physics lecture handout]


\DeclareOption*{\PassOptionsToClass{\CurrentOption}{extarticle}}
\ProcessOptions

\LoadClass[14pt, a4paper, notitlepage, oneside]{extarticle}

\setlength{\oddsidemargin}{0pt}
\setlength{\topmargin}{0pt}
\setlength{\textwidth}{16cm}
\setlength{\textheight}{24cm}
\setlength{\voffset}{-1cm}

\makeatletter

\newcommand{\lecturenumber}[1]{\def\@lecturenumber{#1}}
\newcommand{\course}[1]{\def\@course{#1}}
\def\@lecturenumber{\ClassWarning{physlecture}{No \string\lecturenumber given}{}}
\def\@course{\ClassWarning{physlecture}{No \string\course given}{}}

\renewcommand{\tableofcontents}{
    \hspace{5ex}\@starttoc{toc}%
    \vspace{12pt}
}
\renewcommand{\numberline}[1]{\relax}
\renewcommand{\contentsline}[3]{\textbf{#2}}
\setcounter{secnumdepth}{0}

\renewcommand{\@oddhead}{{\footnotesize\mbox{\@author}\hfil\mbox{{\bf \IeC{\CYRF}\IeC{\cyri}\IeC{\cyrz}\IeC{\cyri}\IeC{\cyrk}\IeC{\cyra}:\space}\@course}\hfil\mbox{\IeC{\CYRL}\IeC{\cyre}\IeC{\cyrk}\IeC{\cyrc}\IeC{\cyri}\IeC{\cyrya}\space\@lecturenumber}}}
\renewcommand{\@oddfoot}{{\footnotesize\hfil  \thepage  \hfil}}

\renewcommand\section{\@startsection{subsubsection}{1}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\normalsize\bfseries}}
\renewcommand\subsection{\@startsection{subsubsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\normalsize\bfseries}}

\renewcommand\maketitle{
  \begin{center}
    \IeC{\CYRL}%
    \IeC{\CYRE}%
    \IeC{\CYRK}%
    \IeC{\CYRC}%
    \IeC{\CYRI}%
    \IeC{\CYRYA} \@lecturenumber
  \end{center}
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@thanks\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
}

\newenvironment{quickliterature}{
  \par
  {
    \centering\normalsize\bfseries%
    \IeC{\CYRL}%
    \IeC{\cyri}%
    \IeC{\cyrt}%
    \IeC{\cyre}%
    \IeC{\cyrr}%
    \IeC{\cyra}%
    \IeC{\cyrt}%
    \IeC{\cyru}%
    \IeC{\cyrr}%
    \IeC{\cyra}\par
  }
  \nopagebreak[4]

  \begin{enumerate}
}{
  \end{enumerate}
}

\endinput
\makeatother
